#pragma once

#ifndef __BIPL_FRONTEND_H__
#define __BIPL_FRONTEND_H__

#include <stdlib.h>
#define _STDLIB_H
#include <stdarg.h>
#include <string.h>
#define YYSTYPE  char *

/// Disable deprecated warning
#pragma warning (disable: 4996)

#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
#define YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{
  int first_line;
  int first_column;
  int last_line;
  int last_column;
  char* file_name;
} YYLTYPE;
#endif

int ret;

void msg(void);
int yyerror(char *s, ...);
int yyparse();
int lyyerror(YYLTYPE t, char *s, ...);
#endif